<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}"  media="all">
    <script th:src="@{/layui/layui.js}" type="text/javascript"></script>
    <title>登录</title>
    <style>
        .main{
            text-align: center;
            background-color: #fff;
            border-radius: 20px;
            width: 300px;
            height: 350px;
            margin: auto;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }
    </style>

</head>
<body>
<div class="main">
    <form id="loginform" class="layui-form" action="" method="post">
        <div class="layui-form-item" style="text-align: center">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-block">
                <input type="text" name="username" id="username"
                      value="admin" lay-verify="title" autocomplete="off" placeholder="请输入用户名" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item" style="text-align: center">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-block">
                <input type="password" name="password" id="password"
                       value="admin" lay-verify="title" autocomplete="off" placeholder="请输入密码" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item" style="text-align: center">
            <label class="layui-form-label"></label>
            <button class="layui-btn">登录</button>
        </div>

        <h4 th:text="${msg}"></h4>
    </form>

</div>
</body>
<script>
</script>
</html>